/*
 * @Author: hq
 * @Date: 2022-05-18 19:57:54
 * @LastEditors: hq
 * @LastEditTime: 2022-08-15 18:06:25
 * @Description: your project
 * @version: 1.0
 */
import request from "@/utils/request";

//菜单
export function getMenuData(data) {
    return request({
        url: "menu/index", //自己的接口地址
        method: "post", //请求方法
        data
    });
}
//上传图片
export function upLoad(data) {
    return request({
        url: "common/upfile", //自己的接口地址
        method: "post", //请求方法
        data,
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}
//获取省市
export function getCity(data) {
    return request({
        url: "common/getCity", //自己的接口地址
        method: "post", //请求方法
        data,
    });
}
//上传图片1
export function upLoadImg(data) {
    return request({
        // url: "common/upfile", //自己的接口地址
        url: "qcloud/upload", //自己的接口地址
        method: "post", //请求方法
        base: 'common',
        data,
        headers: {
            "Content-Type": "multipart/form-data",
        },
    });
}